package com.example.tourstor;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.tourstor.searchView.ICallBack;
import com.example.tourstor.searchView.SearchView;
import com.example.tourstor.searchView.bCallBack;

public class Merchant_search extends AppCompatActivity {

    private SearchView searchView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_merchant_search);

        searchView = findViewById(R.id.search_view);

        searchView.setOnClickSearch(new ICallBack() {
            @Override
            public void SearchAciton(String string) {
                System.out.println("我收到了" + string);
            }
        });

        searchView.setOnClickBack(new bCallBack() {
            @Override
            public void BackAciton() {
                finish();
            }
        });

    }

    /*@Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.search_view:
        }
    }*/
}
